package com.app.service;

import com.app.common.Result;
import com.app.model.IntegralOrderModel;
import com.app.model.UserModel;
import com.app.vo.IntegralOrderVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 16693103420
 * @since 2024-02-01
 */
public interface IntegralOrderService extends IService<IntegralOrderModel> {

    IntegralOrderVo getIntegralOrderList(Integer page, Integer limit, String goodsName, Integer status,String areaId,String phone);

    //用户查询列表
    IntegralOrderVo getUserIntegralOrderList(Integer page, Integer limit, String goodsName, Integer status, Integer userId);


    /**
     * 确认收货
     *
     * @param orderSn 订购sn
     * @return boolean
     */
    boolean confirmReceipt(String orderSn);

    Result refund(String orderSn, Integer type);

    boolean refundReview(String orderSn,Integer status,String refundRemarks);

    /**
     * 查询状态点
     *
     * @param startTime 开始时间
     * @param endTime   结束时间
     * @return {@link Object}
     */
    Object queryStatusPoints(String startTime, String endTime);

    Result cancelOrderOfflineIntegralGoods(String orderSn);

    Result writeOffIntegralOrder(IntegralOrderModel integralOrderModel, UserModel writeoffUser);
}
